﻿namespace OpenLS.Spreadsheet.Formats.Biff.Records
{
    internal class ContinueBigNameRecord : BiffRecord
    {
        private byte[] _data;

        public ContinueBigNameRecord(byte[] bytes)
        {
            this._data = bytes;
        }

        public ContinueBigNameRecord()
        {
        }

        protected override void ReadContent(BiffReaderContext context, int length)
        {
            this._data = context.ReadBytes(length);
        }

        internal override BiffRecordType RecordType
        {
            get { return BiffRecordType.ContinueBigName; }
        }

        public byte[] Data
        {
            get { return _data; }
        }

        internal override void WriteContent(BiffWriterWorkbookContext context)
        {
            context.Write(_data);
        }
    }
}